<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>axios</title>
    <script type="text/javascript" src="../assets/js/vue-2.3.0.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
    <div id="app"></div>
</body>
<script>
    //  this.$http.jsonp(this.apiUrl).then(function(response){
    //     this.$set('gridData', response.data)
    // })
    var app = new Vue({
       el: "#app",
       data:{
        show: true,
        stocklist: []
       },
       created: function () {
        axios.get('http://dev.taocaimall.com/taocaimall/hello.json')
            .then(function (response) {
            console.log(response.data);
            })
            .catch(function (error) {
            console.log(error);
            });
        }
       
   })
</script>
</html>